<template>
  <router-view v-if="isFullscreenRoute" />
  <el-container v-else>
    <router-view />
    <!-- 原有的布局内容 -->
  </el-container>
</template>

<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()

// 判断是否为全屏路由
const isFullscreenRoute = computed(() => {
  return route.meta?.fullscreen
})
</script>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#app {
  height: 100%;
}
</style> 